package com.ticket.sass.common.entity.tenant;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("group_purchase_settings")
public class GroupPurchaseSettingEntity {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private BigDecimal price;
    public LocalDateTime startDate;
    public LocalDateTime endDate;
    private Long cinemaId;
    private Long tenantId;

    @TableField(fill = FieldFill.INSERT)
    public LocalDateTime createdAt;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    public LocalDateTime updatedAt;
    @TableField(select = false)
    @TableLogic(value = "null", delval = "now()")
    public LocalDateTime deletedAt;
}
